package com.zqxq.lottery.util;

import com.zqxq.common.utils.NumUtils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author 苦智
 * @date 2018/6/20 16:39
 * @description
 * @ClassName NumUtil
 */
public class NumUtil extends NumUtils{
    public static String getNum(String numStr){
        String regEx="[^0-9]";
        Pattern p = Pattern.compile(regEx);
        Matcher m = p.matcher(numStr);
        return m.replaceAll("").trim();
    }
}
